<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>大事件/注册/登录</title>
    <!-- 引入layui样式表 -->
    <link rel="stylesheet" href="./assets/lib/layui/css/layui.css">
    <!-- 引入自己的css -->
    <link rel="stylesheet" href="./assets/css/login.css">
</head>
<body>
    <div class="layui-main">
        <!-- logo图标 -->
    <img src="./assets/images/logo.png" alt="">
</div>
<!-- 登录界面 -->
<div class="login">
    <div class="login-title"></div>
    <!-- 登录页面 -->
<div class="login-box">
    <form class="layui-form" id="form_login">
        <!-- 第一行账号 -->
        <div class="layui-form-item">
            <i class="layui-icon layui-icon-username"></i>   
            <input type="text" name="username" required  lay-verify="required" placeholder="请输入用户名" autocomplete="off" class="layui-input">
        </div>
        <!-- 第二行密码 -->
        <div class="layui-form-item">
            <i class="layui-icon layui-icon-password"></i>   
            <input type="password" name="password" required  lay-verify="required|psw" placeholder="请输入密码" autocomplete="off" class="layui-input">
        </div>
        <!-- 第三行按钮 普通按钮和表单按钮的区别就是lay-submit-->
        <div class="layui-form-item">
            <button class="layui-btn layui-btn-normal layui-btn-fluid" lay-submit lay-filter="formDemo">登录</button>
        </div>
        <!-- 第四行链接 -->
        <div class="layui-form-item" id="r1">
            <a href="javascript:;" id="link-reg">去注册账号</a>
        </div>
        </form>
</div>
<!-- 注册页面 -->
<div class="reg-box">
    <!-- 注册表单 -->
    <form class="layui-form"id="form_reg">
        <!-- 第一行账号 -->
        <div class="layui-form-item">
            <i class="layui-icon layui-icon-username"></i>   
            <input type="text" name="username" required  lay-verify="required" placeholder="请输入用户名" autocomplete="off" class="layui-input">
        </div>
        <!-- 第二行密码 -->
        <div class="layui-form-item">
            <i class="layui-icon layui-icon-password"></i>   
            <input type="password" name="password" required  lay-verify="required|psw" placeholder="请输入密码" autocomplete="off" class="layui-input">
        </div>
        <div class="layui-form-item">
            <i class="layui-icon layui-icon-password"></i>   
            <input type="password" name="repassword" required  lay-verify="required|psw|repsw" placeholder="请再次确认密码" autocomplete="off" class="layui-input">
        </div>
        <!-- 第三行按钮 普通按钮和表单按钮的区别就是lay-submit-->
        <div class="layui-form-item">
            <button class="layui-btn layui-btn-normal layui-btn-fluid" lay-submit lay-filter="formDemo">注册账号</button>
        </div>
        <!-- 第四行链接 -->
        <div class="layui-form-item" id="r1">
           
            <a href="javascript:;" id="link-login">去登陆</a>
        </div>
        </form>
</div>
</div>
<!-- 引入layui的js表单验证 -->
<script src="./assets/lib/layui/layui.all.js"></script>
<!-- 引入Jquery -->
<script src="./assets/lib/jquery.js"></script>
<script src="./assets/js/ajaxapi.js"></script>
<!-- 引入自己的js -->
<script src="./assets/js/login.js"></script>
</body>
</html>